//
//  HelloWorldLayer.m
//  ProjectW
//
//  Created by Nguyen Tan Loc on 7/21/12.
//  Copyright __MyCompanyName__ 2012. All rights reserved.
//


// Import the interfaces
#import "HelloWorldLayer.h"
#import "Utilities.h"
#import "MatchmakingServer.h"
#import "MatchmakingClient.h"

@implementation HelloWorldLayer

+(CCScene *) scene
{
	CCScene *scene = [CCScene node];
	HelloWorldLayer *layer = [HelloWorldLayer node];
	[scene addChild: layer];
	return scene;
}

-(id) init
{
    if (self = [super init])
    {
//        MatchmakingServer *server = [[MatchmakingServer alloc] init];
//        [server startAcceptingConnectionForSessionID:SESSIONID];
        
//        MatchmakingClient *client = [[MatchmakingClient alloc] init];
//        [client startSearchingForServerWithSessionID:SESSIONID];
        
        
//        CCSprite *sprite = [CCSprite spriteWithFile:@"background_main.png"];
//        sprite.anchorPoint = CGPointZero;
//        sprite.position = CGPointZero;
//        [sprite setTextureRect:CGRectMake(0, 0, 500, 500)];
//        [self addChild:sprite];
    }
    
    return self;
}

- (void) dealloc
{
	[super dealloc];
}
@end
